package com.su.fileupload.service;

import com.su.fileupload.entity.SysChunk;
import com.baomidou.mybatisplus.extension.service.IService;
import com.su.fileupload.vo.request.FileChunkRequest;
import com.su.fileupload.vo.response.FileChunkCheckResponse;

import java.util.List;

/**
 * <p>
 * 文件分片记录表 服务类
 * </p>
 *
 * @author susj
 * @since 2023-08-13
 */
public interface ISysChunkService extends IService<SysChunk> {


    /**
     * 检查文件块
     *
     * @param fileChunkRequest
     * @return
     */
    FileChunkCheckResponse checkFileChunk(FileChunkRequest fileChunkRequest);


    /**
     * 获取文件块列表
     *
     * @param identifier
     * @return
     */
    List<SysChunk> getChunkList(String identifier);

    /**
     * 情况文件块信息
     *
     * @param identifier
     */
    void removeByFileIdentifier(String identifier);
}
